﻿@using SunTzu.Utility;
@model form_media
@{
    ViewBag.Title = "合作媒体申请";
    Layout = "~/Views/Shared/Class/_Layout.cshtml";
    
    bool isWaiting = Model.Id > 0 && Model.State == 0;
    bool isApproved = Model.State == 1;
}
    <script src="/js/exhibitor.js"></script>
    <div class="registerForm registerFormInner">
    <form id="editForm" action="/Media/CreateMedia?id=@Model.Id" method="post">
        @if (isWaiting)
        {
        <p class="hCent redText">* 您的合作媒体申请表已经提交，正在等待审核。您可以继续修改以下内容</p>
        }
        else if (isApproved)
        {
        <p class="hCent redText">* 您的合作媒体申请表已经通过审核。</p>
        }
        <div class="registerFormSubTitle">媒体信息</div>
        <ul>
            <li class="formProp"><span>*</span>媒体名称：</li>
            <li class="formShortLine" style="width:400px">
                <input type="text" class="inputNormal required" name="Title" id="Title" value="@Model.Title" />
                <span targetId="Title" class="tipMsg">请输入媒体名称</span>
            </li>
            <li class="clear"></li>
        </ul>
        <ul>
            <li class="formProp"><span>*</span>媒体地址：</li>
            <li class="formShortLine" style="width:400px">
                <input type="text" class="inputNormal required" name="MediaAddress" id="MediaAddress" value="@Model.MediaAddress" />
                <span targetId="MediaAddress" class="tipMsg">请输入媒体地址</span>
            </li>
            <li class="clear"></li>
        </ul>
        <div class="registerFormSubTitle">媒体类型</div>
        <ul>
            <li class="formProp">期刊：</li>
            <li class="formShortLine" style="width:400px">
                发行量：<input type="text" class="inputSmall" name="MagazineAmount" id="MagazineAmount" value="@Model.MagazineAmount" />份/期
                &nbsp;&nbsp;发行周期：<input type="radio" name="MagazineCircle" id="MagazineCircle" @(Model.MagazineCircle == 0 ? "checked" : "") value="0" /> 周刊
                <input type="radio" name="MagazineCircle" id="MagazineCircle" @(Model.MagazineCircle == 1 ? "checked" : "") value="1" /> 半月刊
                <input type="radio" name="MagazineCircle" id="MagazineCircle" @(Model.MagazineCircle == 2 ? "checked" : "") value="2" /> 月刊
                <input type="radio" name="MagazineCircle" id="MagazineCircle" @(Model.MagazineCircle == 3 ? "checked" : "") value="3" /> 季刊
            </li>
            <li class="clear"></li>
        </ul>
        <ul>
            <li class="formProp">网站：</li>
            <li class="formShortLine" style="width:400px">
                网址：<input type="text" class="inputNormal" name="WebsiteUrl" id="WebsiteUrl" value="@Model.WebsiteUrl" />
                &nbsp;&nbsp;首页PR值：<input type="text" class="inputSmall" name="WebsitePR" id="WebsitePR" value="@Model.WebsitePR" />
            </li>
            <li class="clear"></li>
        </ul>
        <ul>
            <li class="formProp">报纸：</li>
            <li class="formShortLine" style="width:400px">
                发行量：<input type="text" class="inputSmall" name="NewsPaperAmount" id="NewsPaperAmount" value="@Model.NewsPaperAmount" />份/天
                &nbsp;&nbsp;版面位置：<input type="text" class="inputNormal" name="NewsPaperPosition" id="NewsPaperPosition" value="@Model.NewsPaperPosition" />
            </li>
            <li class="clear"></li>
        </ul>
        <ul>
            <li class="formProp">电视媒体：</li>
            <li class="formShortLine" style="width:400px">
                时间：<input type="text" class="inputSmall" name="TVMinutes" id="TVMinutes" value="@Model.TVMinutes" />分钟/天
                &nbsp;&nbsp;频率：<input type="text" class="inputSmall" name="TVDay" id="TVDay" value="@Model.TVDay" />次/天
            </li>
            <li class="clear"></li>
        </ul>
        <ul>
            <li class="formProp">墙体广告：</li>
            <li class="formShortLine" style="width:400px">
                开始时间：<input type="text" class="inputSmall" name="AdvStartTime" id="AdvStartTime" value="@Model.AdvStartTime" />
                &nbsp;&nbsp;结束时间：<input type="text" class="inputSmall" name="AdvEndTime" id="AdvEndTime" value="@Model.AdvEndTime" />
                &nbsp;&nbsp;总价：<input type="text" class="inputSmall" name="AdvPrice" id="AdvPrice" value="@Model.AdvPrice" />元
            </li>
            <li class="clear"></li>
        </ul>
        <ul>
            <li class="formProp">其他：</li>
            <li class="formShortLine" style="width:400px">
                <input type="text" class="inputNormal" name="MediaOther" id="MediaOther" value="@Model.MediaOther" />
            </li>
            <li class="clear"></li>
        </ul>
        
        <div class="registerFormSubTitle">公司信息</div>
        <ul>
            <li class="formProp">公司网站：</li>
            <li class="formShortLine" style="width:400px">
                <input type="text" class="inputNormal" name="Url" id="Url" value="@Model.Url" />
            </li>
            <li class="clear"></li>
        </ul>
        <ul>
            <li class="formProp">公司地址：</li>
            <li class="formShortLine" style="width:400px">
                <input type="text" class="inputNormal" name="Address" id="Address" value="@Model.Address" />
            </li>
            <li class="clear"></li>
        </ul>
        
        <div class="registerFormSubTitle">联系信息</div>
        <ul>
            <li class="formProp"><span>*</span>联系人：</li>
            <li class="formShortLine" style="width:400px">
                <input type="text" class="inputNormal required" name="Contacter" id="Contacter" value="@Model.Contacter" />
                <span targetId="Contacter" class="tipMsg">请输入联系人</span>
            </li>
            <li class="clear"></li>
        </ul>
        <ul>
            <li class="formProp">职务：</li>
            <li class="formShortLine" style="width:400px">
                <input type="text" class="inputNormal" name="ContacterTitle" id="ContacterTitle" value="@Model.ContacterTitle" />
            </li>
            <li class="clear"></li>
        </ul>
        <ul>
            <li class="formProp"><span>*</span>联系电话：</li>
            <li class="formShortLine" style="width:400px">
                <input type="text" class="inputNormal required" name="Tel" id="Tel" value="@Model.Tel" />
                <span targetId="Tel" class="tipMsg">请输入联系电话</span>
            </li>
            <li class="clear"></li>
        </ul>
        <ul>
            <li class="formProp"><span>*</span>传真：</li>
            <li class="formShortLine" style="width:400px">
                <input type="text" class="inputNormal required" name="Fax" id="Fax" value="@Model.Fax" />
                <span targetId="Fax" class="tipMsg">请输入传真</span>
            </li>
            <li class="clear"></li>
        </ul>
        <ul>
            <li class="formProp"><span>*</span>手机：</li>
            <li class="formShortLine" style="width:400px">
                <input type="text" class="inputNormal required mobile" name="Mobile" id="Mobile" value="@Model.Mobile" />
                <span targetId="Mobile" class="tipMsg">请输入手机</span>
            </li>
            <li class="clear"></li>
        </ul>
        <ul>
            <li class="formProp"><span>*</span>Email：</li>
            <li class="formShortLine" style="width:400px">
                <input type="text" class="inputNormal required email" name="Email" id="Email" value="@Model.Email" />
                <span targetId="Email" class="tipMsg">请输入正确的Email</span>
            </li>
            <li class="clear"></li>
        </ul>
        
        <div class="registerFormSubTitle">组委会联系信息</div>
        <p class="hCent">翁小姐, 电话: 0592-5371961, 18250768122</p>
        <p class="hCent">传真：0592-5371959</p>
        <p class="hCent">Email：media@cccifair.org</p>

        @if (!isApproved)
        {
        <div class="clear"></div>
        <div class="solidLine"></div>
        <div class="buttonBox">
            <a class="smallButton" href="javascript:void()" onclick="$('#editForm').submit();">@(Model.Id == 0 ? "提交申请" : "保存")</a>
            <div style="display: none">
                <input id="submitbutton" type="submit" value="提  交" />
                <input type="button" value="取  消" />
            </div>
        </div>
        }
    </form>
    </div>
